package com.ktwlsoft.archivemanage.domain.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import java.util.Date;

 /**
  * archive_unit--立档单位
  *
  * @author zhuhe on 2019-10-24 14:19:39
  * @version 1.0
  */
@ApiModel("archive_unit--立档单位-ArchiveUnit")
@Getter
@Setter
public class ArchiveUnit extends BaseEntity {

    /**账号外键id**/
    @ApiModelProperty("账号id")
    @NotNull
	private Long accountId;

    /**父级主键编号**/
    @ApiModelProperty("父级主键编号")
    private Long pid;

    /**单位**/
    @ApiModelProperty("单位")
    @Size(max = 30, message = "单位参数超长")
    private String unitName;

    /**树层级**/
    @ApiModelProperty("树层级")
    private Integer treeLevel;

    /**单位性质**/
    @ApiModelProperty("单位性质")
    @Size(max = 30, message = "单位性质参数超长")
    private String unitNature;

    /**单位电话**/
    @ApiModelProperty("单位电话")
    @Size(max = 30, message = "单位电话参数超长")
    private String unitTele;

    /**单位图片**/
    @ApiModelProperty("单位图片")
    @Size(max = 100, message = "单位图片参数超长")
    private String unitImg;

    /**账号(小程序)**/
    @ApiModelProperty("账号(小程序)")
    @Size(max = 30, message = "账号(小程序)参数超长")
    private String account;

    /**账号状态(1启用，0禁用)**/
    @ApiModelProperty("账号状态(1启用，0禁用)")
    private Boolean enable;

    /**地址**/
    @ApiModelProperty("地址")
    @Size(max = 50, message = "地址参数超长")
    private String address;

    /**单位证件(ORGANIZE_CODE(组织机构代码), BUSINESS_LISENCE(营业执照))**/
    @ApiModelProperty("单位证件(ORGANIZE_CODE(组织机构代码), BUSINESS_LISENCE(营业执照))")
    @Size(max = 30, message = "单位证件(ORGANIZE_CODE(组织机构代码), BUSINESS_LISENCE(营业执照))参数超长")
    private String unitIdentityType;

    /**单位证件号**/
    @ApiModelProperty("单位证件号")
    @Size(max = 50, message = "单位证件号参数超长")
    private String unitIdentityNum;

     /**单位证件图片**/
     @ApiModelProperty("单位证件图片")
     @Size(max = 50, message = "单位证件图片")
     private String identityImg;

    /**备注**/
    @ApiModelProperty("备注")
    @Size(max = 100, message = "备注参数超长")
    private String remark;

    /**密码**/
    @ApiModelProperty("密码")
    @Size(max = 30, message = "密码参数超长")
    private String password;

}
